function BigType_Change(){

	var Big_ID = $("#Big_ID").val();
	var url;
	url="Ajax_Corp_Type.asp";
	$.post(
	url,
	{
	Big_ID:Big_ID
	},
	function (msg) {
		
		showResponse(msg)		
	}
	);
}


function showResponse(originalRequest)		
{
	//解析字符串
	BuildSel(originalRequest,document.getElementById("Corp_Type"))

}

function BuildSel(str,sel)
{
	/*
	*--------------- BuildSel(str,sel) -----------------
	* BuildSel(str,sel) 
	* 功能:通过str构建Select.
	* 参数:str,字符串,由服务端返回的.有特定结构"字符串1|,字符串2,字符串3"
	*          也可为"字符串1序号|字符串1文本,字符串2序号|字符串2文本,字符串3序号|字符串3文本",如本例
	* 参数:sel,要构建的Select
	* 实例:BuildSel(unescape(oBao.responseText),document.all.sel2)
	*--------------- BuildSel(str,sel) -----------------
	*/
	//先清空原来的数据.
	sel.options.length=0;
	var arrstr = new Array();
	arrstr = str.split("|");
	//开始构建新的Select.
	sel.options.add(new Option( "全部",""));  
	if(str.length>0)   
	{
		for(var i=0;i<arrstr.length;i++)
		{
			//分割字符串
			var subarrstr=new Array
			subarrstr=arrstr[i].split(",")
			//生成下级菜单
			sel.options.add(new Option(subarrstr[1],subarrstr[0])); 
		}
		sel.options[0].selected=true
	}
	for (i=0 ; i<sel.options.length; i++)
	{
		if (sel.options[i].value==Corp_Type)
		sel.options[i].selected = true;
	}  

}


function City_Change(){

	var City_ID = $("#City_ID").val();
	var url;
	url="Ajax_City_Area.asp";
	$.post(
	url,
	{
	City_ID:City_ID
	},
	function (msg) {
		
		showResponse1(msg)		
	}
	);
}


function showResponse1(originalRequest)		
{
	//解析字符串
	BuildSel1(originalRequest,document.getElementById("Corp_City_Area"))

}

function BuildSel1(str,sel)
{
	/*
	*--------------- BuildSel(str,sel) -----------------
	* BuildSel(str,sel) 
	* 功能:通过str构建Select.
	* 参数:str,字符串,由服务端返回的.有特定结构"字符串1|,字符串2,字符串3"
	*          也可为"字符串1序号|字符串1文本,字符串2序号|字符串2文本,字符串3序号|字符串3文本",如本例
	* 参数:sel,要构建的Select
	* 实例:BuildSel(unescape(oBao.responseText),document.all.sel2)
	*--------------- BuildSel(str,sel) -----------------
	*/
	//先清空原来的数据.
	sel.options.length=0;
	var arrstr = new Array();
	arrstr = str.split("|");
	//开始构建新的Select.
	sel.options.add(new Option( "全部",""));  
	if(str.length>0)   
	{
		for(var i=0;i<arrstr.length;i++)
		{
			//分割字符串
			var subarrstr=new Array
			subarrstr=arrstr[i].split(",")
			//生成下级菜单
			sel.options.add(new Option(subarrstr[1],subarrstr[0])); 
		}
		sel.options[0].selected=true
	}
	for (i=0 ; i<sel.options.length; i++)
	{
		if (sel.options[i].value==Area_ID)
		sel.options[i].selected = true;
	}  

}